<?php

namespace app\api\controller;

use app\api\model\TieBaType AS TypeModel;

class TieBaType extends Base
{
    /**
     * 贴吧板块分类列表
     * @return array
     * @throws \think\Exception\DbException
     */
    public function index()
    {
        $showNum = input('showNum') == 1 ? true : false;
        $model = TypeModel::getList($showNum);
        return self::sendResult(self::$okCode, $model);
    }
}